﻿@model AppError
<div class="pageContent">
    <div class="pageFormContent">
        <div class="tabs">
            <div class="tabsHeader">
                <div class="tabsHeaderContent">
                    <ul>
                        <li><a href="javascript:void(0);"><span>信息</span></a></li>
                        <li><a href="javascript:void(0);"><span>StackTrace</span></a></li>
                        <li><a href="javascript:void(0);"><span>ServerVariables</span></a></li>
                    </ul>
                </div>
            </div>
            <div class="tabsContent">
                <div>
                    <div style="line-height: 200%;">
                        Url： @Model.Url
                    </div>
                    <div style="line-height: 200%;">
                        Referer：@Model.Referer
                    </div>
                    <div style="line-height: 200%;">
                        UserAgent：@Model.UserAgent
                    </div>
                </div>
                <div style="padding: 10px;">
                    <div style="font-size: 14px; font-weight: bold; line-height: 200%;">@Model.ExType</div>
                    <div style="font-size: 14px; line-height: 200%;">@Model.ExSource @Model.ExMessage</div>
                    <pre style="line-height: 200%; font-size: 14px;">@Model.ExStackTrace</pre>
                </div>
                <div>
                    <table class="table" width="98%" layouth="138">
                        <thead>
                            <tr>
                                <th width="200">
                                    键
                                </th>
                                <th>
                                    值
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            @{
                                var ignore = new[] { "ALL\u0000HTTP", "ALL\u0000RAW", "HTTP\u0000COOKIE" };
                                var dic = Json.Decode<Dictionary<string, string>>(Model.Variables).Where(x => !ignore.Contains(x.Key));
                            }
                            @foreach (var o in dic)
                            {<tr>
                                <td>@o.Key
                                </td>
                                <td>@o.Value
                                </td>
                            </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="tabsFooter">
                <div class="tabsFooterContent">
                </div>
            </div>
        </div>
    </div>
    <div class="formBar">
        <div style="line-height: 200%;">
            @(Model.Machine)(@(Model.ServerIp)) 服务器上的 @Model.Server 在 @Model.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
            发生了 @Model.ExType
        </div>
    </div>
</div>
